#ifndef FICHESEMISINVISIBLE_H
#define FICHESEMISINVISIBLE_H
class FicheSemisInvisible ;
#include <QWidget>
#include <QtGui>
#include <QVector>
#include "bddfichesemisinvisible.h"

using namespace std ;

class FicheSemisInvisible : public QWidget
{
        Q_OBJECT



public:
    explicit FicheSemisInvisible(QWidget *parent = 0);

    //Fiche semis
    void setDate(vector<QString>Value);
    void setSemaine(vector<QString>Value);
    void setParcelle(std::vector<QString> Value);
    void setNumeroSemis(std::vector<QString> Value);
    void setNbrPassage(std::vector<QString> Value);
    void setPL(std::vector<QString> Value);
    void setML(std::vector<QString> Value);
    void setNumLot(vector<QString> Value);
    void setType(std::vector<QString> Value);
    void setVariete(std::vector<QString> Value);
    void setReglage(std::vector<std::vector<QString> > Value);
    void setVitesse(std::vector<std::vector<QString> > Value);
    void setTrMin(std::vector<std::vector<QString> > Value);
    void setSemoir(std::vector<std::vector<QString> > Value);
    void setTotal(std::vector<QString> Value);

    void MettreDate();

    void MettreSemaine();

    void MettreParcelle();

    void MettreNumeroSemis();

    void MettreNbrPassage();

    void MettrePL();

    void MettreML();

    void MettreNumLot();

    void MettreType();

    void MettreVariete();

    void MettreReglage();

    void MettreVitesse();

    void MettreTrMin();

    void MettreTotal();

    void MettreSemoir();

    void CalculTotal();

    QString getDate();
    QString getParcelle();
    QString getNumSemis();




    QPushButton*getBoutonOuvrir();
    QPushButton*getBoutonPartagerXML();
    QTableWidget * getTableauSemis();
    QLineEdit *getLineEditNumSemis();
    QComboBox* getEmploye();
    QComboBox* getSemaine();
    QComboBox* getParcelleSemis();
    QComboBox* getDateSemis();

    QLineEdit *getLineEditTotal();

    QString getDuParcelle();
    QString getAuParcelle();
    QString getNumParcelleParcelle();
    QPushButton*getBoutonOuvrirParcelle();

signals:

private :

    //Widget pour la fiche semis
    //QWidget * FichesSemis;

    bddFicheSemisInvisible * ObjetBDDFicheSemisInvisible ;
    QLabel *LabelPersonnel;
    QComboBox *ComboBoxPersonnel;
    QLabel *LabelParcelleSemis;
    QLabel *LabelDateSemis;
    QComboBox *LineEditDateSemis;
    QLabel *LabelSemaineSemis;
    QComboBox *LineEditSemaineSemis;
    QLabel *LabelParcelle;
    QComboBox *ComboBoxParcelle;
    QLabel *LabelNumSemis;
    QLineEdit *LineEditNumSemis;
    QGridLayout *LayoutFicheSemis;
    QHBoxLayout *LayoutDateSemis;
    QTableWidget *TableauSemis;
    QLabel *LabelTotal;
    QHBoxLayout *LayoutTotal;
    QPushButton *BoutonOuvrir;
    QLineEdit *LineEditTotal;


public slots:

        void BoutonOuvrirClicked() ;
        void ValeurComboBoxChanged() ;

};

#endif // FICHESEMISINVISIBLE_H
